//
//  JJBaseViewController.m
//  JJHW_coreData
// 像鲸鲸海外首页 、资讯首页、和鲸美食之类的都基本相似，需要一个基类 然后抽象化 (暂时没有用到)
//  Created by lizhenqiang on 16/4/9.
//  Copyright © 2016年 HFKJ_LZQ. All rights reserved.
//

#import "JJBaseViewController.h"

@interface JJBaseViewController ()

@end

@implementation JJBaseViewController

- (void)viewDidLoad {
    
    [super viewDidLoad];
    
   
    // Do any additional setup after loading the view.
}
-(void)viewWillAppear:(BOOL)animated
{
    [super viewWillAppear:YES];
    UIColor *color = NavBarBJColor;
     [self.navigationController.navigationBar lt_setBackgroundColor:[color colorWithAlphaComponent:1.0]];
}


#pragma mark - UITableView DataSource

//- (NSInteger)numberOfSectionsInTableView:(UITableView *)tableView {
//    return 1;
//}

- (NSInteger)tableView:(UITableView *)tableView numberOfRowsInSection:(NSInteger)section {
    return self.dataSource.count;
}
-(CGFloat)tableView:(UITableView *)tableView heightForRowAtIndexPath:(NSIndexPath *)indexPath
{
    return 50.0f;
}
- (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath
{
    // in subClass
    return nil;
}
-(void)tableView:(UITableView *)tableView didSelectRowAtIndexPath:(NSIndexPath *)indexPath
{
    
}
- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}

/*
#pragma mark - Navigation

// In a storyboard-based application, you will often want to do a little preparation before navigation
- (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender {
    // Get the new view controller using [segue destinationViewController].
    // Pass the selected object to the new view controller.
}
*/

@end
